import { defineStore } from 'pinia'
import { ref } from 'vue'

// 用户模块
export const useCenterStore = defineStore(
  'center',
  () => {
    const centerChangeShow = ref(false) // 定义 中心详情
    const centerChange = (t: boolean) => {
      centerChangeShow.value = t // 显示中心详情
    }

    return { centerChangeShow, centerChange }
  },
  {
    persist: true // 持久化
  }
)
